package com.qianli.cashmama.trade.domain.services;

import com.qianli.cashmama.trade.client.bill.request.BillPayRequest;
import com.qianli.cashmama.trade.domain.model.BillBase;
import com.qianli.cashmama.trade.domain.model.TradeBase;

public interface TradeDiscountService {


    /**
     * 优惠实扣
     * @param tradeBase
     */
    void deductDiscount(TradeBase tradeBase);


    /**
     * 核销券
     * @param billBase
     * @param billPayRequest
     */
    void verifyDiscount(BillBase billBase, BillPayRequest billPayRequest);


    /**
     * 回滚优惠券
     * @param tradebase
     */
    void rollBackDiscount(TradeBase tradebase);



}